<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let add = ["张三", '44', '44', '77', '李四', ' 1', '2', '4', '44', '77', ]

        function filter(add) {
            return add.filter((i, k, arr) => {
                return arr.indexOf(i, 1) === k
            })
        }
        var ss = filter(add)
        console.log(ss);
    </script>
</body>

</html>